package com.quanyan.user.mq;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Created by Administrator on 2016/7/14.
 */
public class  UserTaskMsg implements Serializable {

    private static final long serialVersionUID = 2492046292238934039L;
    /**
     * 用户id
     */
    @NotNull(message = "uid不能为空！")
    private Integer uid;
    /**
     * 任务id
     */
    @NotNull(message = "taskId不能为空！")
    private Integer taskId;
    /**
     * 时间戳
     */
    private Long timestamp;

    //掏鸟蛋数
    private Long accumulate;

    public Long getAccumulate() {
        return accumulate;
    }

    public void setAccumulate(Long accumulate) {
        this.accumulate = accumulate;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getTaskId() {
        return taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    @Override
    public String toString() {
        return "UserTaskMsg{" +
                "uid=" + uid +
                ", taskId=" + taskId +
                ", timestamp=" + timestamp +
                '}';
    }
}
